package com.atguigu.edu.service;

import com.atguigu.edu.handler.VideoServiceHandler;
import com.atguigu.response.RetVal;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "EDU-VIDEO",fallback = VideoServiceHandler.class)
public interface VideoServiceFeign {

    //1.删除单个视频
    @DeleteMapping("{videoId}")
     RetVal deleteSingleVideo(@PathVariable String videoId);

    //2. 删除多个视频
    @DeleteMapping("deleteMultiVideo")
     RetVal deleteMultiVideo(@RequestParam("videoIdList") List<String> videoIdList);
}
